home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ibmsyn.zip / SEMFISDM.H < prev    next >
Text File  |  1992-04-14  |  2KB  |  52 lines

  1.  
  2. /* semfdddm.h */
  3.  
  4. /*****************************************************************************/
  5. /* NT IBM SDLC Adapter Device Driver: DMA support stuff                      */
  6. /*****************************************************************************/
  7.  
  8. #define StandardDMAChannel   0x01
  9.  
  10. #define DMAPhysAddress       0x02
  11. #define DMACountRegister     0x03
  12. #define DMAMaskRegister      0x0a
  13. #define DMAModeRegister      0x0b
  14. #define DMAFirstByteFlipFlop 0x0c
  15.  
  16. #define DMAExtdFnRegister    0x18
  17. #define LDD_DMAEFE           0x1a
  18.  
  19. #define DMAPageRegister      0x83
  20.  
  21. #define DMAClearChannel1     0x01
  22. #define DMAMaskChannel1      0x05
  23. #define DMACmdWrite          0x45
  24. #define DMACmdRead           0x49
  25.  
  26. #define MCADMASetMask        0x90
  27. #define MCADMAAddress        0x20
  28. #define MCADMACount          0x40
  29. #define MCADMAMode           0x70
  30. #define MCADMAClearMask      0xa0
  31.  
  32. #define DMACrosses64K(BufStart,BufSize)                                        \
  33.   (                                                                            \
  34.     (                                                                          \
  35.      (                                                                         \
  36.        (                                                                       \
  37.         ((ULONG) BufStart)              /* the physical address mod 64K      */\
  38.          &                                                                     \
  39.         ((ULONG) 0xFFFF  )                                                     \
  40.        )                                                                       \
  41.       +                                                                        \
  42.        ((ULONG)                                                                \
  43.         ((BufSize)-1)                   /* up to last byte (but not to next!)*/\
  44.        )                                                                       \
  45.      )                                                                         \
  46.      & (~0xFFFF)                                                                \
  47.     )                                                                          \
  48.     NE 0L                                                                      \
  49.   )                                     /* non-zero if crosses 64k boundary  */
  50.  
  51.  
  52.